﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DotNetMVC.Website.Areas.WebAdmin.Models
{
    public class AdminUserEditViewModel
    {
        [Required(ErrorMessage = "用户名Id不能为空")]
        [Display(Name = "用户Id")]
        public long Id { get; set; }

        [DisplayName("初始密码")]
        public string password { get; set; }

        [Compare("password")]
        [DisplayName("确认密码")]
        public string password2 { get; set; }

        [DisplayName("手机号码")]
        public string phoneNum { get; set; }

        [DataType(DataType.EmailAddress)]
        [DisplayName("邮箱")]
        public string email { get; set; }

        [DisplayName("城市")]
        public long? cityId { get; set; }

        //[Required(ErrorMessage = "未设置角色")]
        [DisplayName("用户角色")]
        public long[] adminRoles { get; set; }

    }
}